<!doctype html>
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta name="layout" content="common">
<title>Manage Members</title>
</head>
<body id="body">
	<h2>Manage Members - Update</h2>
	<hr />

	<div class="row>">
		<g:form name="UpdateUser" method="POST" action="update">
			<g:hiddenField name="id" value="${userInstance?.id}" />
			<g:hiddenField name="version" value="${userInstance?.version}" />
			<g:hiddenField name="searchCondition" value="${searchCondition}"/>
			<g:hiddenField name="prevAction" value="${prevAction}"/>
			<table width="100%">
				<tr>
					<td width="30%">Login ID</td>
					<td>
						<g:fieldValue bean="${userInstance}" field="username"/>
					</td>
				</tr>
				<tr>
					<td>Full Name</td>
					<td>
						<g:fieldValue bean="${userInstance}" field="name"/>
					</td>
				</tr>
				<tr>
					<td>Gender</td>
					<td>
						<g:fieldValue bean="${userInstance}" field="gender"/>
					</td>
				</tr>
				<tr>
					<td>NRIC</td>
					<td>
						<g:fieldValue bean="${userInstance}" field="nric"/>
					</td>
				</tr>
				<tr>
					<td>Mobile</td>
					<td>
						<g:fieldValue bean="${userInstance}" field="mobile"/>
					</td>
				</tr>
				<tr>
					<td>Phone</td>
					<td>
						<g:fieldValue bean="${userInstance}" field="phone"/>
					</td>
				</tr>
				<tr>
					<td>Email</td>
					<td>
						<g:fieldValue bean="${userInstance}" field="email"/>
					</td>
				</tr>
				<tr>
					<td>Status&nbsp;<font color="red">*</font></td>
					<td>
						<g:select name="status" from="${statList}" keys="${statList}" value="${fieldValue(bean:userInstance,field:'status')}"/>
					</td>
				</tr>
				<tr>
					<td>Created Date</td>
					<td>
						<g:formatDate date="${userInstance.dateCreated}"  format="dd/MM/yyyy HH:mm:ss" />
					</td>
				</tr>
				<tr>
					<td>Last Login Date</td>
					<td>
						<g:formatDate date="${userInstance.loginDate}"  format="dd/MM/yyyy HH:mm:ss" />
					</td>
				</tr>
				<tr><td>&nbsp;</td></tr>
				<tr>
					<td></td>
					<td>
						<g:actionSubmit action="save" value="Save" class="btn btn-primary" />
						<g:actionSubmit action="search" value="Cancel" class="btn" onclick="return confirm('Any changes made will be lost without saving. Are you sure you want to cancel?');" />
					</td>
				</tr>
			</table>
		</g:form>
	</div>
</body>
</html>
